﻿// JSON C# Class Generator
// http://at-my-window.blogspot.com/?page=json-class-generator

using System;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;
using TomatoSynchronizer.Store;

namespace TomatoSynchronizer.Entities 
{

    public class ProductVariantGroupEntry
    {

        public ProductVariantGroupEntry()
        {
        }

        public ProductVariantGroupEntry(string json)
         : this(JObject.Parse(json))
        {
        }

        private JObject __jobject;
        public ProductVariantGroupEntry(JObject obj)
        {
            this.__jobject = obj;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }        

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _products_variants_values_id;
        public string products_variants_values_id
        {
            get
            {
                if(_products_variants_values_id == null)
                    _products_variants_values_id = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "products_variants_values_id"));
                return _products_variants_values_id;
            }
            set
            {
                _products_variants_values_id = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _products_variants_values_name;
        public string products_variants_values_name
        {
            get
            {
                if(_products_variants_values_name == null)
                    _products_variants_values_name = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "products_variants_values_name"));
                return _products_variants_values_name;
            }
            set
            {
                _products_variants_values_name = value;
            }
        }

    }
}
